<template>
  <div class="content-main">
    <el-container>
      <el-header>
        <phead />
      </el-header>
      <el-container>
        <el-aside>
          <pcontentAside />
        </el-aside>
        <el-main>
          <pcontentRight />
        </el-main>
      </el-container>
      <el-footer>
        <pfooter />
      </el-footer>
    </el-container>
  </div>
</template>

<script>
import Header from "@/components/view/common/Header";
import ContentRight from "@/components/view/common/ContentRight";
import ContentAside from "@/components/view/common/ContentAside";
import Footer from "@/components/view/common/Footer";

export default {
  name: "ContentMain",
  components: {
    phead: Header,
    pcontentRight: ContentRight,
    pcontentAside: ContentAside,
    pfooter: Footer,
  },
};
</script>

<style scoped>
.content-main, .el-container, .el-aside {
  height: 100%;
}

#app {
  font-family: "Avenir", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}

.el-header {
  background-color: #2f4050;
  color: white;
  text-align: center;
  line-height: 50px;
}

.el-footer {
  position: fixed;
  bottom: 0px;
  width: 100%;
  background-color: #2f4050;
  color: white;
  text-align: center;
  line-height: 50px;
}

.el-aside {
  background-color: #2f4050;
  color: #333;
  text-align: left;
  line-height: 200px;
  /**默认300px, !important覆盖默认配置*/
  width: 15% !important;
}
</style>